/config/users/<user_name>/password/hash5

Use

Use to configure or change the password.

If you include characters other than letters (upper or lower), digits, dashes, and periods in a password, you must put double quotes around it.

Normally, you should use the clear form of the password, and the system encrypts the password. You can see the encrypted password the following ways:

  • CLI command–show run
  • REST API–/config/users/<user_name>/password/hash5

Use the encrypted form of the password only when you need to use an existing password on another system. You can copy the encrypted password from the show run output or from the /status/config/running node, then paste it into the encrypted form of the command on another system.

When you send a PUT or POST with a password to this node, the system automatically populates the /clear node with an empty string (“”).

Parameters

user_name: Name of user account

Data Key

The data key contains the encrypted password from another F5® LineRate® system.

Data Type

string

Default Data Value

“”

Default Allowed

False

Request Methods

GET, PUT

Examples

GET

curl -b cookie.jar -k https://10.1.2.3:8443/lrs/api/v1.0/config/users/admin/password/hash5

GET Response

{"/config/users/admin/password/hash5": {"data": "$2a$04$iwmwAgO4fAXKmeWGz3L4O.qZ4DuGvINF62ksbOZif9aNlAmjOSphi",
                                         "default": False,
                                         "defaultAllowed": False,
                                         "deleteAllowed": False,
                                         "numChildren": 0,
                                         "type": "string"},
 "httpResponseCode": 200,
 "recurse": False,
 "requestPath": "/config/users/admin/password/hash5"}

PUT

curl -b cookie.jar –data @data.json -k -H “Content-Type: application/json” -X PUT https://10.1.2.3:8443/lrs/api/v1.0/config/users/admin/password/hash5

PUT Response

{"httpResponseCode": 200,
  "requestPath": "/config/users/admin/password/hash5",
  "recurse":false}
  1. /config/users/<user_name>/password/hash5 1. Parameters 2. Data Key
    1. Data Type
    2. Default Data Value 3. Default Allowed 4. Request Methods 5. Related 6. Examples